import './assets/main.css'
import 'element-plus/dist/index.css'
import { createApp, h } from 'vue'
import { createPinia } from 'pinia'

import { plugin } from 'echarts-for-vue';
import * as echarts from 'echarts';

import App from './App.vue'
import router from './router'
import directive from './directive'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(directive)

app.use(plugin, { echarts, h });

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
